#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "des.h"

int main(int argc, char **argv)
{
    clock_t start, finish;
    double time_taken;
    char desKey[8] = "!aT41701";
    start = clock();
    des_file("1.txt", desKey, "2.txt", 'e');
    finish = clock();
    time_taken = (double)(finish - start) / (double)CLOCKS_PER_SEC;
    printf("Time taken: %lf seconds.\n", time_taken);
    start = clock();
    des_file("2.txt", desKey, "3.txt", 'd');
    finish = clock();
    time_taken = (double)(finish - start) / (double)CLOCKS_PER_SEC;
    printf("Time taken: %lf seconds.\n", time_taken);

    return 0;
} 
